package com.tpshion.cloud.common.support;

import java.io.Serializable;
import java.util.Date;

/**
 * token实体对象
 */
public class TokenEntity implements Serializable {

    private static final long serialVersionUID = -3495932337035173504L;

    /**
     * token令牌
     */
    private String token;

    /**
     * 过期日期
     */
    private Date expireDate;

    public TokenEntity() {
    }

    public TokenEntity(String token, Date expireDate) {
        this.token = token;
        this.expireDate = expireDate;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    @Override
    public String toString() {
        return "TokenEntity{" +
                "token='" + token + '\'' +
                ", expireDate=" + expireDate +
                '}';
    }
}
